﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FireProtectionEnquiry.aspx.cs"
    Inherits="MTRC.ODMS.Web.SOM.FireProtection.FireProtectionEnquiry" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="APJ.Web.UI.WebControls" Namespace="APJ.Web.UI.WebControls"
    TagPrefix="APJ" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<%@ Register Src="~/UserControl/Menu/PageFoot.ascx" TagName="PageFoot" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/TabStrip.ascx" TagName="TabStrip" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/PageHead.ascx" TagName="PageHead" TagPrefix="WebStructure" %>
<%@ Register Src="~/UserControl/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="WebStructure" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Operational Data Management System</title>
    <link href="<%=ResolveUrl("~/CSS/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
    <link href="~/CSS/Menu.css" rel="stylesheet" type="text/css" />
    <link id="cssWait" rel="stylesheet" type="text/css" />
    <%-- add by gordon 20150812 | For Search Wait Cursor --%>
    <style type="text/css">
        .HandCursorClass
        {
            cursor: pointer;
        }
    </style>
    <script src="../../Javascript/SOM/Common.js" type="text/javascript"></script>
    <script src="../../Javascript/CommonFunction.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function OpenEntryPageMaximum(url)  //huangyao 20081129 in MTR office
        {
            document.getElementById("<%=HiddenFieldUrl.ClientID %>").value = url;
            document.getElementById("<%=btnSetSession.ClientID %>").click();
            /*******************add by jack 20151202 for using session store enquiry condition start**********************/
            //            //debugger;
            //            var aaa = url;
            //            //xopen(url, window.screen.width, window.screen.height,'yes',null);
            //            //xopen(url, 1024, 768,'yes',null);
            //            //alert("test by huangyao");
            //            //  window.moveTo(0,0);   
            //            //  window.resizeTo(screen.availWidth,screen.availHeight);   
            //            //  window.outerWidth=screen.availWidth;   
            //            //  window.outerHeight=screen.availHeight;   

            //            //Date:2015-08-12
            //            //            newwin = window.open("", "", "scrollbars=yes, toolbar=yes, menubar=yes, location=yes, status=yes, resizable=yes");
            //            //            if (document.all) {
            //            //                newwin.moveTo(0, 0);
            //            //                newwin.resizeTo(screen.width, screen.height - 25);
            //            //            }
            //            //            newwin.location = url;
            //            //Date:2015-08-12

            //            //added by Nathan 2015-08-15

            //            var dateFrom;
            //            var dateTo;
            //            var station = document.getElementById("ddlStation").value;
            //            var inputAll = document.getElementsByTagName("input");
            //            for (var i = 0; i < inputAll.length; i++) {
            //                if (inputAll[i].type == "text" && inputAll[i].id.indexOf("dtbFrom") >= 0) {
            //                    dateFrom = inputAll[i].value;
            //                }
            //                if (inputAll[i].type == "text" && inputAll[i].id.indexOf("dtbTo") >= 0) {
            //                    dateTo = inputAll[i].value;
            //                }
            //            }
            //            var FreeTextcblShow = getChackboxListValue("cblShow");

            //            var Reason = document.getElementById("ddlReason").value;
            //            var Status = getChackboxListValue("cblFinkStatus");
            //            var FireLink = document.getElementById("ddlFireLink").value;
            //            //            // var ZoneGroup = document.getElementById("ddlZoneGroup").value;
            //            //            var obj = document.getElementById('ddlZoneGroup');
            //            //            var ZoneGroup = obj.options[obj.selectedIndex].text; //获取文本
            //            var ZoneGroup;
            //            if (FireLink == "0") {
            //                ZoneGroup = document.getElementById("ddlZoneGroup").value;
            //            } else {
            //                var obj = document.getElementById('ddlZoneGroup');
            //                ZoneGroup = obj.options[obj.selectedIndex].text; //获取文本
            //            }
            //            //            SetCookie("AdmissionRegistryEnquiry_station", station);
            //            //            SetCookie("AdmissionRegistryEnquiry_dateFrom", dateFrom);
            //            //            SetCookie("AdmissionRegistryEnquiry_dateTo", dateTo);
            //            //            SetCookie("AdmissionRegistryEnquiry_FreeTextcblShow", FreeTextcblShow);
            //            //            SetCookie("AdmissionRegistryEnquiry_Reason", Reason);
            //            //            SetCookie("AdmissionRegistryEnquiry_Status", Status);
            //            //            SetCookie("AdmissionRegistryEnquiry_FireLink", FireLink);
            //            //            SetCookie("AdmissionRegistryEnquiry_ZoneGroup", ZoneGroup);

            //            var CookieValue = '{ "Station":"' + station + '", "DateFrom":"' + dateFrom + '", "DateTo":"' + dateTo + '", "List":"' + FreeTextcblShow + '", "Reason":"' + Reason + '", "Status":"' + Status + '", "FireLink":"' + FireLink + '", "ZoneGroup":"' + ZoneGroup + '"}';
            //            var pathName = window.document.location.pathname;
            //            var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
            //            SetCookie("FireProtection_Common", CookieValue, "", projectName + "/");
            //            window.location.href = (url + "&isBack=1&PageID=FireProtectionEnquiry");

            // End added by Nathan 2015-08-15
            /*******************add by jack 20151202 for using session store enquiry condition end**********************/
        }

        //added by Nathan 2015-08-15
        function setSearchCookie() {
            /*******************add by jack 20151202 for using session store enquiry condition start**********************/
            //            var isBack = getQueryString("isBack");
            //            if (isBack == "1") {
            //       
            //                // edit by jack 20151130 for cookie save
            //                //var station = GetCookie("AdmissionRegistryEnquiry_station");
            //                var FireLinkProtection = eval('(' + GetCookie("FireProtection_Common") + ')');
            //                var station = FireLinkProtection.Station;
            //                if (station != "" && station != null) {
            //                    //                    document.getElementById("ddlStation").value = GetCookie("AdmissionRegistryEnquiry_station");
            //                    //                    document.getElementById("dtbFrom_dateTextBox").value = GetCookie("AdmissionRegistryEnquiry_dateFrom");
            //                    //                    document.getElementById("dtbTo_dateTextBox").value = GetCookie("AdmissionRegistryEnquiry_dateTo");
            //                    //                    var showValue = GetCookie("AdmissionRegistryEnquiry_FreeTextcblShow");
            //                    //                    setChackboxListValue("cblShow", showValue);
            //                    //                    document.getElementById("ddlReason").value = GetCookie("AdmissionRegistryEnquiry_Reason");

            //                    //                    // document.getElementById("cblFinkStatus").value = GetCookie("AdmissionRegistryEnquiry_Status");
            //                    //                    var showValue1 = GetCookie("AdmissionRegistryEnquiry_Status");
            //                    //                    setChackboxListValue("cblFinkStatus", showValue1);
            //                    //document.getElementById("ddlFireLink").value = GetCookie("AdmissionRegistryEnquiry_FireLink");

            //                    document.getElementById("ddlStation").value = FireLinkProtection.Station;
            //                    document.getElementById("dtbFrom_dateTextBox").value = FireLinkProtection.DateFrom;
            //                    document.getElementById("dtbTo_dateTextBox").value = FireLinkProtection.DateTo;

            //                    var showValue = FireLinkProtection.List;
            //                    setChackboxListValue("cblShow", showValue);
            //                    document.getElementById("ddlReason").value = FireLinkProtection.Reason;

            //                    var showValue1 = FireLinkProtection.Status;
            //                    setChackboxListValue("cblFinkStatus", showValue1);

            //                    var firelinkevalue = FireLinkProtection.FireLink;
            //                    document.getElementById("ddlFireLink").value = firelinkevalue;

            //                    var firezonegroup = FireLinkProtection.ZoneGroup;

            //                    if (firelinkevalue == "0") {
            //                        //document.getElementById("ddlZoneGroup").value = GetCookie("AdmissionRegistryEnquiry_ZoneGroup");
            //                        document.getElementById("ddlZoneGroup").value = firezonegroup;
            //                        document.getElementById("TextddlZoneGroup").value = "";
            //                    } else {
            //                        //document.getElementById("TextddlZoneGroup").value = GetCookie("AdmissionRegistryEnquiry_ZoneGroup");
            //                        document.getElementById("ddlZoneGroup").value = firezonegroup;
            //                    }
            //                    // document.getElementById("ddlZoneGroup").value = GetCookie("AdmissionRegistryEnquiry_ZoneGroup");
            //                    //document.getElementById("TextddlZoneGroup").value = GetCookie("AdmissionRegistryEnquiry_ZoneGroup");
            //                    document.getElementById("ddlZoneGroup").value = firezonegroup;
            //                    document.getElementById("TextddlZoneGroup").value = firezonegroup;

            //                }
            //                //                SetCookie("AdmissionRegistryEnquiry_station", "");
            //                //                SetCookie("AdmissionRegistryEnquiry_dateFrom", "");
            //                //                SetCookie("AdmissionRegistryEnquiry_dateTo", "");
            //                //                SetCookie("AdmissionRegistryEnquiry_FreeTextcblShow", "");
            //                //                SetCookie("AdmissionRegistryEnquiry_Reason", "");
            //                //                SetCookie("AdmissionRegistryEnquiry_Status", "");
            //                //                SetCookie("AdmissionRegistryEnquiry_FireLink", "");
            //                //                SetCookie("AdmissionRegistryEnquiry_ZoneGroup", "");
            //                var pathName = window.document.location.pathname;
            //                var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
            //                SetCookie("FireProtection_Common", "", -1000, projectName + "/");
            //            }
            document.getElementById("btnSearch").click();
            /*******************add by jack 20151202 for using session store enquiry condition end**********************/
        }
        //End added by Nathan 2015-08-15


        function hbtnExport_OnClick() {

            var obj = document.getElementById("hbtnExport");
            //update by gordon 20150910
            //            obj.click();
            ExportClick('../../CSS/ForAdmRegWaitCursor.css', obj.id);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <AjaxControlToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
    </AjaxControlToolkit:ToolkitScriptManager>
    <!-------add by jack 20151202 for using session store enquiry condition start----->
    <asp:HiddenField ID="HiddenFieldUrl" runat="server" />
    <asp:Button ID="btnSetSession" runat="server" Text="SetSession" OnClick="btnSetSession_Click"
        Style="display: none" />
    <!-------add by jack 20151202 for using session store enquiry condition end----->
    <table border="0" cellpadding="0" cellspacing="0" class="Page_Container">
        <tr>
            <td colspan="2" class="Page_Head">
                <WebStructure:PageHead ID="PageHead" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="Page_Left">
                <WebStructure:MainMenu ID="MainMenu" runat="server" AppPath="../../" CurrMenuID="M1403" />
            </td>
            <td class="Page_Right">
                <table class="Page_Contents">
                    <tr>
                        <td class="TabStrip">
                            <WebStructure:TabStrip ID="TabStrip" CurrMenuID="M140301" ParentMenuID="M1403" DMenuMode="CurrOnly"
                                runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="Contents" style="height: 16px">
                            <!--********************************Put your contents here!********************************-->
                            <asp:UpdatePanel runat="server" ID="panelUP">
                                <ContentTemplate>
                                    <fieldset style="clear: both; margin-bottom: 0px; background-color: #eeeeee;">
                                        <table width="100%" style="padding-bottom: 5px;" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td colspan="5">
                                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                        <tr>
                                                            <td style="width: 56px;">
                                                                <span style="padding-left: 5px;">
                                                                    <asp:Label ID="lblStation" runat="server" Text="Staion"></asp:Label></span>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="ddlStation" runat="server" CssClass="ddlStation" OnSelectedIndexChanged="ddlStation_SelectedIndexChanged"
                                                                    AutoPostBack="True">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td style="width: 140px;">
                                                                <asp:Label ID="lblFrom" runat="server" Text="From:"></asp:Label>
                                                                <APJ:DateTextBox ID="dtbFrom" runat="server" />
                                                            </td>
                                                            <td style="width: 136px;">
                                                                <asp:Label ID="lblTo" runat="server" Text="To:"></asp:Label>
                                                                <APJ:DateTextBox ID="dtbTo" runat="server" />
                                                            </td>
                                                            <td style="width: 60px;">
                                                                <asp:Label ID="lblDisplay" runat="server" Text="Display:"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:CheckBoxList ID="cblShow" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                                                </asp:CheckBoxList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td width="10%" valign="top">
                                                    <span style="padding-left: 5px;">
                                                        <asp:Label ID="lblReason" runat="server" Text="Reason:"></asp:Label></span>
                                                </td>
                                                <td width="25%" valign="top">
                                                    <asp:DropDownList ID="ddlReason" runat="server" Width="150px">
                                                    </asp:DropDownList>
                                                </td>
                                                <td colspan="3" valign="top">
                                                    <span>
                                                        <asp:Label ID="lblFrieLinkStatus" runat="server" Text="Staus:"></asp:Label>
                                                        <asp:CheckBoxList ID="cblFinkStatus" runat="server" RepeatDirection="Horizontal"
                                                            RepeatLayout="Flow">
                                                        </asp:CheckBoxList>
                                                    </span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <span style="padding-left: 5px;">
                                                        <asp:Label ID="lblFireLink" runat="server" Text="Fire Link"></asp:Label></span>
                                                </td>
                                                <td>
                                                    <asp:DropDownList ID="ddlFireLink" runat="server" Width="150px" OnSelectedIndexChanged="ddlFireLink_SelectedIndexChanged"
                                                        AutoPostBack="True">
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblZoneGroup" runat="server" Text="ZoneGroup"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="TextddlZoneGroup" runat="server" Style="display: none;"></asp:TextBox>
                                                    <asp:DropDownList ID="ddlZoneGroup" runat="server" Width="128px">
                                                    </asp:DropDownList>
                                                </td>
                                                <td align="right">
                                                    <%-- update by gordon 20150812 | For Search Wait Cursor --%>
                                                    <%--<asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />&nbsp;--%>
                                                    <asp:Button ID="btnSearch" runat="server" Text="Search" OnClientClick="showWait('../../CSS/ForAdmRegWaitCursor.css')"
                                                        OnClick="btnSearch_Click" />&nbsp;
                                                    <asp:Button ID="btnNew" runat="server" Text="New Record" OnClick="btnNew_Click" />&nbsp;
                                                    <asp:Button ID="btnExport" runat="server" Text="Export to excel" OnClientClick="hbtnExport_OnClick();"
                                                        OnClick="ddlFireLink_SelectedIndexChanged" />&nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <input type="hidden" id="hdnSearchByFireLinkID" value="0" runat="server" />
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                <APJ:CommonGridView ID="grvData" runat="server" DataKeyNames="StationEventID,ParentStationEventID"
                                                    AllowPaging="True" AllowSorting="True" AscPic="~/Images/Common/arrow_up_green.png"
                                                    AutoGenerateColumns="False" BorderColor="black" CssClass="GridView" DescPic="~/Images/Common/arrow_down_green.png"
                                                    EnableTheming="True" OnRowDataBound="grvData_RowDataBound" OnNeedDataBind="grvData_NeedDataBind"
                                                    PageLinkCount="7">
                                                    <EmptyDataRowStyle CssClass="GridView_Header" />
                                                    <PagerTemplate>
                                                        <asp:Table ID="CommonPagerTemplate" runat="server" Width="100%">
                                                            <asp:TableRow ID="COMGRIDV_TR" runat="server">
                                                                <asp:TableCell ID="COMGRIDV_Pager_Cell_TotalRecords" runat="server" CssClass="GridView_Pager_Cell_TotalRecords">
                                                                    <asp:Label ID="Lbl_T_TotalRecords" runat="server">Total Records:</asp:Label>
                                                                    <asp:Label ID="Lbl_V_TotalRecords" runat="server"></asp:Label>
                                                                    &nbsp; &nbsp;
                                                                    <asp:Label ID="Lbl_V_CurPage" runat="server"></asp:Label>
                                                                    &nbsp;<asp:Label ID="Label1" runat="server">/</asp:Label>
                                                                    &nbsp;<asp:Label ID="Lbl_V_TotalPages" runat="server"></asp:Label>
                                                                </asp:TableCell>
                                                                <asp:TableCell ID="COMGRIDV_Pager_Cell_PageSize" runat="server" CssClass="GridView_Pager_Cell_PageSize">
                                                                    <asp:Label ID="Lbl_T_PageSize" runat="server">PageSize:</asp:Label>
                                                                    &nbsp;&nbsp;<asp:DropDownList ID="DDL_PageSize" runat="server" AutoPostBack="True">
                                                                        <asp:ListItem Value="5">5</asp:ListItem>
                                                                        <asp:ListItem Value="10">10</asp:ListItem>
                                                                        <asp:ListItem Value="15">15</asp:ListItem>
                                                                        <asp:ListItem Value="20">20</asp:ListItem>
                                                                        <asp:ListItem Value="25">25</asp:ListItem>
                                                                        <asp:ListItem Value="30">30</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </asp:TableCell>
                                                                <asp:TableCell ID="COMGRIDV_Pager_Cell_Prev" runat="server" CssClass="GridView_Pager_Cell_Prev">
                                                                    <asp:LinkButton ID="LBtn_Previous" runat="server" CommandArgument="Prev" CommandName="Page"><</asp:LinkButton>
                                                                </asp:TableCell>
                                                                <asp:TableCell ID="COMGRIDV_Pager_Cell_PagerLink" runat="server" CssClass="GridView_Pager_Cell_PagerLink">
                                                                    <asp:Panel ID="Pnl_PageLink" runat="server" CssClass="GridView_Pager_PageLinkPanel">
                                                                    </asp:Panel>
                                                                </asp:TableCell>
                                                                <asp:TableCell ID="COMGRIDV_Pager_Cell_Next" runat="server" CssClass="GridView_Pager_Cell_Next">
                                                                    <asp:LinkButton ID="LBtn_Next" runat="server" CommandArgument="Next" CommandName="Page">></asp:LinkButton>
                                                                </asp:TableCell>
                                                            </asp:TableRow>
                                                        </asp:Table>
                                                    </PagerTemplate>
                                                    <RowStyle CssClass="GridView_Row" />
                                                    <HeaderStyle CssClass="GridView_Header" />
                                                    <AlternatingRowStyle CssClass="GridView_AlternativeRow" />
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="SOM_EventNo" SortExpression="EventNo">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("EventNo") %>' __designer:wfdid="w19"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemStyle Width="168px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblGrvEventNo" runat="server" Text='<%# Bind("EventNo") %>' __designer:wfdid="w14"></asp:Label>
                                                                <asp:HyperLink ID="hypLinkAdminReg" Target="_self" CssClass="HandCursorClass" runat="server"
                                                                    __designer:wfdid="w18" ToolTip='<%# this.GetLabel("SOM_AdmissionRegistryLink") %>'
                                                                    ImageUrl="~/Images/SOM/Admission_Registry_Link.gif">HyperLink</asp:HyperLink>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="COM_IsolationTime" SortExpression="EventTime">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("EventTime") %>' __designer:wfdid="w10"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemStyle Width="106px" />
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblgrvEventTime" runat="server" Text='<%# Bind("EventTime") %>' Width="110px"></asp:Label><asp:Label
                                                                    ID="lblgrvEventCompleteTime" runat="server" Text='<%# Bind("EventCompleteTime") %>'
                                                                    Width="110px"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="FireLinkCode" HeaderText="SOM_FireLink" SortExpression="FireLinkCode">
                                                            <ItemStyle Width="60px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="StaffName" HeaderText="SOM_RequestbyName" SortExpression="StaffName">
                                                            <ItemStyle Width="100px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="Company" HeaderText="SOM_RequestbyOUCompany" SortExpression="Company">
                                                            <ItemStyle Width="80px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="IsolateReasonCode" HeaderText="SOM_Reason" SortExpression="IsolateReasonCode">
                                                            <ItemStyle Width="20%" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="FireLinkStatusCode" HeaderText="SOM_FireLinkStatus" SortExpression="FireLinkStatusCode">
                                                            <ItemStyle Width="60px" />
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="OOSGroupCode" HeaderText="SOM_LoopBeingIsolated" SortExpression="OOSGroupCode">
                                                            <ItemStyle Width="160px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="COM_Status" SortExpression="EventStatusID">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox1" runat="server" __designer:wfdid="w52"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemStyle Width="40px" />
                                                            <HeaderStyle Width="1%" />
                                                            <ItemTemplate>
                                                                <div style="display: none">
                                                                    <asp:Label ID="lblStatusID" runat="server" Text='<%# Bind("EventStatusID") %>' __designer:wfdid="w49"></asp:Label>
                                                                </div>
                                                                <asp:Image ID="imgStatus" runat="server" __designer:wfdid="w50"></asp:Image>
                                                            </ItemTemplate>
                                                            <FooterStyle Width="40px" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="SOM_Handover" SortExpression="FlagHandover">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox3" runat="server" __designer:wfdid="w6"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemStyle Width="20px" />
                                                            <ItemTemplate>
                                                                <div style="display: none">
                                                                    <asp:Label ID="lblHandOver" runat="server" Text='<%# Bind("FlagHandover") %>' __designer:wfdid="w4"></asp:Label>
                                                                    <asp:Label ID="lblHandoverNote" runat="server" Text='<%# Bind("HandoverNote") %>'
                                                                        __designer:wfdid="w7"></asp:Label></div>
                                                                <asp:Image ID="imgHandOver" runat="server" __designer:wfdid="w5"></asp:Image>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText="SOM_HighLight" SortExpression="HighLight">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="TextBox5" runat="server" __designer:wfdid="w54"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemStyle Width="20px" />
                                                            <HeaderStyle Width="20px" />
                                                            <ItemTemplate>
                                                                <div style="display: none;">
                                                                    <asp:Label ID="lblHighLight" runat="server" Text='<%# Bind("HighLight") %>' __designer:wfdid="w53"></asp:Label></div>
                                                                <asp:Image ID="imgHighLight" runat="server" __designer:wfdid="w55"></asp:Image>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <EmptyDataTemplate>
                                                        <asp:Table ID="Table1" runat="server" CssClass="GridView_Header_EmptyData">
                                                            <asp:TableRow ID="TableRow1" runat="server">
                                                                <asp:TableCell ID="TableCell1" runat="server" Style="border-right: black 1px solid;" Width="168px"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell2" runat="server" Style="border-right: black 1px solid;" Width="60px"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell3" runat="server" Style="border-right: black 1px solid;" Width="80px"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell4" runat="server" Style="border-right: black 1px solid;" Width="20%"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell5" runat="server" Style="border-right: black 1px solid;" Width="60px"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell6" runat="server" Style="border-right: black 1px solid;" Width="160px"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell7" runat="server" Style="border-right: black 1px solid;" Width="40px"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell8" runat="server" Style="border-right: black 1px solid;" Width="40px"></asp:TableCell>
                                                                <asp:TableCell ID="TableCell9" runat="server" Width="40px"></asp:TableCell>
                                                            </asp:TableRow>
                                                        </asp:Table>
                                                    </EmptyDataTemplate>
                                                </APJ:CommonGridView>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <input runat="server" id="hbtnExport" style="display: none;" type="button" value="Export to excel"
                                onserverclick="hbtnExport_ServerClick" />
                            <!--********************************Put your contents here!********************************-->
                        </td>
                    </tr>
                    <tr>
                        <td class="Page_Foot" style="height: 54px">
                            <WebStructure:PageFoot ID="PageFoot" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
<script type="text/javascript" language="javascript">
    setSearchCookie();
</script>
</html>
